#include <iostream>

using namespace std;

class Person{
public:
	int age;
	Person(){}
	
	Person(int a): age(a){}
	
	Person operator +(const Person &p){
		Person tmp;
		tmp.age = this->age + p.age;
		return tmp;
	}

	
};

int main(){
	Person p1(10);
	Person p2(20);
	Person p3 = p1 + p2;
	cout << p3.age << endl;
	return 0;
}